#ifndef SIGNWAY_STACK_H
#define SIGNWAY_STACK_H
#include "sw_dlink.h"

typedef dlink stack;

#define stack_init() dlink_init()
#define stack_get_size(head) dlink_get_size(head)
#define stack_empty(head) dlink_empty(head)
#define stack_begin(head) dlink_begin(head)
#define stack_end(head) dlink_end(head)
#define stack_front(head) dlink_front(head)
#define stack_back(head) dlink_back(head)
#define stack_push(head, data) dlink_push_front(head, data)
#define stack_pop(head) dlink_pop_front(head)

#endif /* SIGNWAY_STACK_H */
